package com.hmy.finance.common.easyexcel.pojo.readlistener;

import com.alibaba.fastjson.JSON;
import com.hmy.finance.common.easyexcel.pojo.importbeans.ImportErrorCellData;
import com.hmy.finance.common.easyexcel.pojo.importbeans.ImportSingleData;
import org.springframework.stereotype.Component;

import java.util.List;


@Component
public class DefaultBatchDataHandler<T extends ImportSingleData> implements BatchDataHandlerInterface<T> {
    @Override
    public List<? extends T> batchDataHandler(List<T> datas, List<ImportErrorCellData> errorCellDatas) {
        System.out.printf("批量处理逻辑" + JSON.toJSON(datas) + "\n");
        System.out.printf("批量处理异常数据" + JSON.toJSON(errorCellDatas) + "\n");
        return datas;
    }

}
